import Api from "../../../common/api/api.js"
export const PlanWorkReport = {
  // 领工列表
  listGet: params => {
    return Api.httpGet(`/materialAssign/claimList`, params);
  },
  // 报工列表
  listReport: params => {
    return Api.httpGet(`/materialAssign/finishList`, params);
  },
  
  // 领工
   getWork: parmas => {
    return Api.httpPost('/materialAssign/claimWork', parmas.ids);
  },
  // 报工
  reportWork: parmas => {
    return Api.httpPost('/materialAssign/finishWork', parmas.ids);
  },
  //工时查询列表
  workListGet: params =>{
	    return Api.httpGet('/materialAssign/workerTrainCycleList', params);
  },
  //工时左侧树结构
  detailTree: params => {
      return Api.httpGet('/materialAssign/workerTrainCycleTree', params);
    },
	//工时详情
    detailList: params => {
      return Api.httpGet('/materialAssign/workerTrainCycleDetail', params);
    }
}